package com.mdx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mdx.bean.EventBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;

/**
 * 事件业务层
 */
@Repository
public interface EventDao extends BaseMapper<EventBean> {

    IPage<EventBean> findByItem(@Param("page") IPage page,
                                @Param("eventName") String eventName,
                                @Param("disasterStage") String disasterStage,
                                @Param("regionName") String regionName,
                                @Param("start") LocalDate start,
                                @Param("end") LocalDate end);
}
